<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/ajax-1.0.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery_last.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery-impromptu.2.7.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery-selected.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.form.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.form.wizard.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.lazyload.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.treeview.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.validate.js"></script>
<title>Login Form</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
</head>
<script type="text/javascript">
	$(document).ready(function() {
		$("#logview").change(function() {
		var logLevel = $("#logview").val();
		alert(logview);
		var url = "<%=request.getContextPath()%>/logService.do?method=viewlog&logLevel="+logLevel;
		alert(url);
											$.ajax({
														type : "post",
														url : url,
														datatype : "json",
														contentType : "application/x-www-form-urlencoded; charset=utf-8",
														success : function(data) {
															var jsons = eval(data);
															
																alert(jsons);
																var tars = "<hr\/>"; 
														
														
														        tars+= "<ul>";  
	                                                                $.each(jsons,function(idxc,item) {
                                                                  tars+="<li><a href="+item+" target=\"_blank\">12</li>";
																			});
                                                                tars+="</ul>>";  
                                                                 $("#b01").html(tars); 
														
														
														
														
														
														
														
														
														
														},
														error : function(
																XMLHttpRequest,
																textStatus,
																errorThrown) {
															alert(errorThrown);
														}
													});
										});
										
					});
				
</script>
<body>
	
	  
	<select name="logview" id="logview" style="width: 110px;">
							<option value="all">ALL</option>
							<option value="info">INFO</option>
							<option value="debug">DEBUG</option>
							<option value="warn">WARN</option>
							<option value="error">ERROR</option>
							
	</select>
	
	
	
	<div id="b01"></div>
	
	
	
	<div id="b03">
	111
	
	<iframe name="search_results" id="search_results" src="index.html" height="100%" width="100%" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto"></iframe>
	222
	</div>
	
	
</body>
</html>
